# cmake file for mingw-duilib-mate
#Author LinskRuis(mgr9525@gmail.com)
#Created: 2018/09/16
#
#  CMake files for duilib
#  file for each app is under the related sub-dir
#

cmake_minimum_required(VERSION 2.8)

project(MingDuilibMateClient)

add_definitions(-std=c++11)
set(CMAKE_CXX_STANDARD 11)

IF (CMAKE_BUILD_TYPE STREQUAL Debug)
    ADD_DEFINITIONS(-DDEBUG)
ENDIF()

# this line is for UNICODE release,which is required by DuiDesigner 
#add_definitions(-DUNICODE -D_UNICODE)

#set(CMAKE_LEGACY_CYGWIN_WIN32 0)

#include_directories("I:\\programs\\YDT\\java-se-8u40-ri\\include")
#link_directories("${CMAKE_CURRENT_SOURCE_DIR}/lib")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/duilib/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/resource/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/clicore/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/climain/)

set(CMAKE_C_FLAGS "-fexec-charset=GBK -finput-charset=UTF-8 -fpermissive -Wall")
set(CMAKE_CXX_FLAGS "-fexec-charset=GBK -finput-charset=UTF-8 -fpermissive -Wall")
#set(CMAKE_LINKER_FLAGS "-Wl,--enable-stdcall-fixup")
#set(CMAKE_SHARED_LINKER_FLAGS "-fPIC -pthread")

# add each CMake file
add_subdirectory(duilib)
add_subdirectory(clicore)
add_subdirectory(climain)
add_subdirectory(client)
